@extends('.app.layout')

@section('title','宣传视频')
@section('head')
    <link href="/code/css/base.css" rel="stylesheet" />
    <link href="/code/css/index.css" rel="stylesheet" />
    <script type="text/javascript">
        function resizeBody() {
            var bodyHeight = document.documentElement.clientHeight;
            $("#Flash1").height(bodyHeight + "px");
            $("body").height(bodyHeight + "px");
        }
        $(function () {
            resizeBody();
        });
    </script>
@endsection
@section('body-attr','onresize="resizeBody()"')
@section('content')
    @if($post['file']&&$post['file'][1]['savepath'])
        <video controls="controls" autoplay="autoplay" width="100%" src="{{asset('storage/'.$post['file'][1]['savepath'])}}" type="video/mp4" id="Flash1" x5-video-player-type="h5" x5-video-player-fullscreen="true"/>
            <!-- <source src="" type="video/mp4" id="Flash1"/> -->
            <!--<source src="movie.mp4" type="video/mp4" /> Your browser does not support the video tag.-->
    @else
        <p>作者还未上传视频</p>
    @endif
    <header class="mui-bar mui-bar-nav">
        <span href="javascript:void(0)" class="mui-pull-left return" onclick="aOfApp('history.back()')">
            <img src="/code/images/back.png" />
        </span>
        <h1 class="mui-title">视频</h1>
    </header>
@endsection